@import '~antd/es/style/themes/default.less';

html,
body,
#root {
  height: 100%;
  font-family: PingFangSC !important;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;

        > span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

// 调整整体样式
.ant-pro-basicLayout-content {
  margin: 0 !important;
  background: #fff;
}

.ant-form-item {
  margin-bottom: 0 !important;
}

.ant-btn-primary {
  background: #475bf6;
  background-color: #475bf6;
  border-color: #475bf6;
}

.ant-btn-primary:hover,
.ant-btn-primary:focus {
  color: #fff !important;
  background: rgba(71, 91, 246, 0.5);
  background-color: rgba(71, 91, 246, 0.5);
  border-color: rgba(71, 91, 246, 0.5);
}

.ant-btn {
  border-color: #dadce6;
}

// .ant-btn:hover,
// .ant-btn:focus,
// .ant-btn:active {
//   color: rgba(14, 19, 29, 0.3);
//   border-color: #eceff5;
// }

.ant-btn-text {
  color: #475bf6;
  border-color: transparent !important;
}

.ant-btn-text:hover,
.ant-btn-text:focus,
.ant-btn-text:active {
  color: #475bf6;
  background: #fff !important;
  background-color: #fff !important;
}

/*滚动条宽度*/
.ant-table-body::-webkit-scrollbar {
  width: 4px;
  height: 6px;
}

/*滚动条里面小方块*/
.ant-table-body::-webkit-scrollbar-thumb {
  border-radius: 5px;
  // -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  // background: rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: inset 0 0 5px rgba(71, 91, 246, 1);
  background: rgba(71, 91, 246, 1);
}

/*滚动条里面轨道*/
.ant-table-body::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.1);
}

/*滚动条宽度*/
body::-webkit-scrollbar {
  width: 4px;
  height: 6px;
}

/*滚动条里面小方块*/
body::-webkit-scrollbar-thumb {
  border-radius: 5px;
  // -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  // background: rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: inset 0 0 5px rgba(71, 91, 246, 1);
  background: rgba(71, 91, 246, 1);
}

/*滚动条里面轨道*/
body::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.1);
}